package com.jianan.mis.data.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the os_contract_plan table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="os_contract_plan"
 */

public abstract class BaseOsContractPlan  implements Serializable {

	public static String REF = "OsContractPlan";
	public static String PROP_COE_DATE = "CoeDate";
	public static String PROP_REMIT_TUITION_DATE = "RemitTuitionDate";
	public static String PROP_APPLY_OFFER_DATE = "ApplyOfferDate";
	public static String PROP_OFFER_ARRIVE_DATE = "OfferArriveDate";
	public static String PROP_NOTICE_BODY_EXAM_DATE = "NoticeBodyExamDate";
	public static String PROP_PVA_DATE = "PvaDate";
	public static String PROP_ID = "Id";
	public static String PROP_OS_CONTRACT = "OsContract";
	public static String PROP_REMARK = "Remark";
	public static String PROP_NOTICE_REMARK = "NoticeRemark";
	public static String PROP_MATERIAL_STATE = "MaterialState";


	// constructors
	public BaseOsContractPlan () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseOsContractPlan (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseOsContractPlan (
		java.lang.Integer id,
		com.jianan.mis.data.domain.OsContract osContract) {

		this.setId(id);
		this.setOsContract(osContract);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.util.Date applyOfferDate;
	private java.util.Date offerArriveDate;
	private java.util.Date pvaDate;
	private java.util.Date noticeBodyExamDate;
	private java.lang.String noticeRemark;
	private java.util.Date remitTuitionDate;
	private java.util.Date coeDate;
	private java.lang.String remark;
	private java.lang.Integer materialState;

	// many to one
	private com.jianan.mis.data.domain.OsContract osContract;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: apply_offer_date
	 */
	public java.util.Date getApplyOfferDate () {
		return applyOfferDate;
	}

	/**
	 * Set the value related to the column: apply_offer_date
	 * @param applyOfferDate the apply_offer_date value
	 */
	public void setApplyOfferDate (java.util.Date applyOfferDate) {
		this.applyOfferDate = applyOfferDate;
	}



	/**
	 * Return the value associated with the column: offer_arrive_date
	 */
	public java.util.Date getOfferArriveDate () {
		return offerArriveDate;
	}

	/**
	 * Set the value related to the column: offer_arrive_date
	 * @param offerArriveDate the offer_arrive_date value
	 */
	public void setOfferArriveDate (java.util.Date offerArriveDate) {
		this.offerArriveDate = offerArriveDate;
	}



	/**
	 * Return the value associated with the column: pva_date
	 */
	public java.util.Date getPvaDate () {
		return pvaDate;
	}

	/**
	 * Set the value related to the column: pva_date
	 * @param pvaDate the pva_date value
	 */
	public void setPvaDate (java.util.Date pvaDate) {
		this.pvaDate = pvaDate;
	}



	/**
	 * Return the value associated with the column: notice_body_exam_date
	 */
	public java.util.Date getNoticeBodyExamDate () {
		return noticeBodyExamDate;
	}

	/**
	 * Set the value related to the column: notice_body_exam_date
	 * @param noticeBodyExamDate the notice_body_exam_date value
	 */
	public void setNoticeBodyExamDate (java.util.Date noticeBodyExamDate) {
		this.noticeBodyExamDate = noticeBodyExamDate;
	}



	/**
	 * Return the value associated with the column: notice_remark
	 */
	public java.lang.String getNoticeRemark () {
		return noticeRemark;
	}

	/**
	 * Set the value related to the column: notice_remark
	 * @param noticeRemark the notice_remark value
	 */
	public void setNoticeRemark (java.lang.String noticeRemark) {
		this.noticeRemark = noticeRemark;
	}



	/**
	 * Return the value associated with the column: remit_tuition_date
	 */
	public java.util.Date getRemitTuitionDate () {
		return remitTuitionDate;
	}

	/**
	 * Set the value related to the column: remit_tuition_date
	 * @param remitTuitionDate the remit_tuition_date value
	 */
	public void setRemitTuitionDate (java.util.Date remitTuitionDate) {
		this.remitTuitionDate = remitTuitionDate;
	}



	/**
	 * Return the value associated with the column: coe_date
	 */
	public java.util.Date getCoeDate () {
		return coeDate;
	}

	/**
	 * Set the value related to the column: coe_date
	 * @param coeDate the coe_date value
	 */
	public void setCoeDate (java.util.Date coeDate) {
		this.coeDate = coeDate;
	}



	/**
	 * Return the value associated with the column: remark
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: remark
	 * @param remark the remark value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: material_state
	 */
	public java.lang.Integer getMaterialState () {
		return materialState;
	}

	/**
	 * Set the value related to the column: material_state
	 * @param materialState the material_state value
	 */
	public void setMaterialState (java.lang.Integer materialState) {
		this.materialState = materialState;
	}



	/**
	 * Return the value associated with the column: os_contract_id
	 */
	public com.jianan.mis.data.domain.OsContract getOsContract () {
		return osContract;
	}

	/**
	 * Set the value related to the column: os_contract_id
	 * @param osContract the os_contract_id value
	 */
	public void setOsContract (com.jianan.mis.data.domain.OsContract osContract) {
		this.osContract = osContract;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.jianan.mis.data.domain.OsContractPlan)) return false;
		else {
			com.jianan.mis.data.domain.OsContractPlan osContractPlan = (com.jianan.mis.data.domain.OsContractPlan) obj;
			if (null == this.getId() || null == osContractPlan.getId()) return false;
			else return (this.getId().equals(osContractPlan.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}